package com.bessel.openApi;


import org.springframework.amqp.rabbit.annotation.*;
import org.springframework.stereotype.Component;


/**
 *
 * @author zhm
 * @className Consumer
 * @date 2024/3/21
 */
@Component
public class Consumer {

    @RabbitListener(queues = "3fba70208d704b7ab5880c567fcc7efc")
    public void receiveMessage(final String message) {
        System.out.println("Received <" + message + ">");
        // 这里是处理接收到的消息的逻辑
    }
}
